<!DOCTYPE html>
<html>

<head>
  <meta charset="UTF-8">
  <title>Insert title here</title>

  <link rel="stylesheet" href="css/appvoralCSS.css">
  <link rel="stylesheet" href="css/ui-dialog.css">
  <link rel="stylesheet" href="css/fontello.css">
  <link rel="stylesheet" href="css/selector.css">
  <script type="text/javascript" src="js/jquery.js"></script>
  <script type="text/javascript" src="js/dialogmin.js"></script>
  <script type="text/javascript" src="js/sea.js"></script>
  <script type="text/javascript" src="js/selector.js"></script>
  <style>
    ::-webkit-scrollbar {
      width: 8px;
      height: 8px;
    }

    ::-webkit-scrollbar-thumb {
      border-radius: 10px;
      background: #b1d8ff;
    }

    ::-webkit-scrollbar-track {
      border-radius: 10px;
      background: #e6e6e6;
    }

    #remark .submitOk {
      display: inline-block;
      margin-top: 4px;
    }
  </style>
</head>

<body>
  <div id="auditInfo"></div>
</body>
<script type="text/javascript">

  $(function () {
    window.parent.postMessage({
      cmd: 'loadSure',
      params: {}
    }, '*')
  })

  function sendFlowHeight(height) {
    window.parent.postMessage({
      cmd: 'height',
      params: {
        height: h
      }
    }, '*')
  }
  function approve(data) {
    let processCode = data.processCode
    let setCode = data.setCode
    let comment = data.comment
    let operation = data.operation

    var param = {
      processCode: processCode,
      comment: comment,
      setCode: setCode,
      operation: operation
    }

    // 主页面进行提交请求，避免不出现loading现象
    window.parent.postMessage({
      cmd: 'callBackSubmit',
      params: {
        data: param,
        msg: 'goSubmit'
      }
    }, '*');
    return;
  }
  //赋值HTML展示流程图
  function setFlowHtml(data) {
    try {
      $("#auditInfo").html(data)
    } catch (error) {
      console.log(error);
    }
  }

</script>

</html>